package cn.net.lwj.sjqy.control;

import cn.net.lwj.sjqy.entity.User;
import cn.net.lwj.sjqy.service.UserService;
import javax.annotation.Resource;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

@RestController
//@RequestMapping("user")
public class UserControl {
    @Resource
    private UserService userService;

    @RequestMapping("/getUser")
    @ResponseBody
    public User getUser(){
        return userService.getUserById(2);
    }

}
